<?php echo Modules::run('content/header_content') ?> 
  
  <div class="container main">
    <div>
      
      <div class="15">
        
        
        <div class="row">
          
		  <div class="span5 sidebar">
            <?php echo Modules::run('content/sidebar_content') ?>
          </div>
		  
		  
		
          <div class="span10 content">
			<h2>
			  <a href="http://multiply.co.id/Pria/c-by5ofro77o">
				Pria
			  </a>
			  
			  <i class="icon-chevron-right icon-orange">
			  </i>
			  Pakaian
			</h2>
            <div class="row box-product-row box">
              <div class="product-nav">
                <div class="sort">
                  <p class="pull-left">
                    Sort by Price
                  </p>
                  <p class="pull-left">
                    <a href="#" class="sort-price " data-sort="high">
                      Highest
                    </a>
                  </p>
                  <p class="pull-left">
                    <a href="#" class="sort-price " data-sort="low">
                      Lowest
                    </a>
                  </p>
                </div>
                <div class="view">
                  <p class="view-text">
                    Display
                  </p>
                  <p class="btn-view-grid">
                    <a href="<?php echo site_url('category/grid/'.$match_cat); ?>" class="view-grid view-grid-hover">
                      <span>
                        Grid
                      </span>
                    </a>
                  </p>
                  <p class="btn-view-list">
                    <a href="<?php echo site_url('category/index/'.$match_cat); ?>" class="view-list ">
                      <span>
                        List
                      </span>
                    </a>
                  </p>
                </div>
              </div>
              <h2>
                Produk Terbaru
              </h2>
              <div class="cat-box">
              
              <?php foreach ($product as $key => $val) { ?>

				<?php 
                $product_id = $val->product_id;
                $price = number_format($val->price,2,',','.'); 
        
                $product_name_length = strlen($val->product_name);
                $product_name_limit = $val->product_name;
        
                if ($product_name_length > 18){
                    $product_name_limit = substr($val->product_name, 0, 18) . '..';
                }
                
                ?>
              
                <div class="span2 box-product" data-store="#" data-product-id="$product_id" data-product-title="<?php echo $val->product_name; ?>">
                  <a href="<?php echo site_url('product/detail/'.$val->product_seo_name); ?>" title="<?php echo $val->product_name ?> Rp <?php echo $price ?>">
                  <span class="product_image">
                    <img src="<?php echo base_url('data/thumb/'.$val->image_file) ?>" title="<?php echo $val->product_name ?> Rp <?php echo $price ?>" alt="<?php echo $val->product_name ?> Rp <?php echo $price ?>">
                   </span>
                  </a>
                  <p class="title">
                    <a href="<?php echo site_url('product/detail/'.$val->product_seo_name); ?>" title="<?php echo $val->product_name ?> Rp <?php echo $price ?>">
                      <?php echo $product_name_limit ?>
                    </a>
                  </p>
                  <p class="price">
                    Rp <?php echo $price ?>
                  </p>
                  <p class="shop">
                    <a href="#" title="#">
                      Lorem lipsum dolor sit
                    </a>
                  </p>
                  <p><a class="add_cart" onclick="alert('<?php echo $product_id; ?>')">Add to Cart</a></p>
                </div>
                <?php } ?>
              </div>
              <div class="clearfix">
              </div>
              <div class="storefront-bottom">
                <div id="paging_area" class="pull-right">
                <center>
                  <?php echo $pagination; ?>
                </center>
                </div>
                <div class="storefront-show">
                </div>
              </div>
            </div>
            
          </div>

        </div>
      </div>
    </div>
  </div>
 
 
<?php echo Modules::run('content/footer_content') ?>